import 'dart:convert';

LibraryKnowledgeUserResult libraryKnowledgeUserResultFromJson(String str) =>
    LibraryKnowledgeUserResult.fromJson(json.decode(str));

String libraryKnowledgeUserResultoJson(LibraryKnowledgeUserResult data) =>
    json.encode(data.toJson());

class LibraryKnowledgeUserResult {
  LibraryKnowledgeUserResult({
    this.status,
    this.message,
    this.result,
  });

  int? status;
  String? message;
  LibraryKnowledgeUserData? result;

  factory LibraryKnowledgeUserResult.fromJson(Map<String, dynamic> json) =>
      LibraryKnowledgeUserResult(
        status: json["status"],
        message: json["message"],
        result: LibraryKnowledgeUserData.fromJson(json["result"]),
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result?.toJson(),
      };
}

class LibraryKnowledgeUserData {
  LibraryKnowledgeUserData({this.total, this.grammer, this.word});

  int? total;
  int? grammer;
  int? word;

  factory LibraryKnowledgeUserData.fromJson(Map<String, dynamic> json) =>
      LibraryKnowledgeUserData(
          total: json["total"], grammer: json["grammer"], word: json["word"]);

  Map<String, dynamic> toJson() =>
      {"total": total, "grammer": grammer, "word": word};
}
